import request from '@/utils/request'

/**
 *考试列表信息
 * @param {*} params
 * @returns
 */
export function getExamExam(params) {
  return request({
    url: '/exam/exam',
    params
  })
}
/**
 *输入框信息
 * @returns
 */
export function getSubjectTree() {
  return request({
    url: '/subject/tree'
  })
}

/**
 * 试卷信息
 * @param {*} params
 * @returns
 */
export function getExamPaper(params) {
  return request({
    url: '/exam/paper',
    params
  })
}

/**
 * 添加
 * @param {*} params
 * @returns
 */
export function postExamExam(data) {
  return request({
    url: '/exam/exam',
    method: 'post',
    data
  })
}

/**
 * 班级列表
 * @param {*} params
 * @returns
 */
export function getClassClass(params) {
  return request({
    url: '/class/class',
    params
  })
}
/**
 * 班级解除绑定   推送班级
 */
export function postExamExamBindClass(data) {
  return request({
    url: '/exam/exam/bindClass',
    method: 'post',
    data
  })
}
/**
 * 删除考试信息
 */
export function deleteExamExam(id) {
  return request({
    url: `/exam/exam/${id}`,
    method: 'DELETE'
  })
}
